package com.woniuxy.woniubookmanager.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.woniubookmanager.entity.Order;
import com.woniuxy.woniubookmanager.mapper.OrderMapper;
import com.woniuxy.woniubookmanager.service.OrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.woniubookmanager.vo.OrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wugd
 * @since 2022-11-29 04:03:13
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Autowired
    OrderMapper orderMapper ;

    @Override
    public Page<OrderVo> getOrderByPage(Integer now, Integer size, String orderNum) {
        Page<OrderVo> page = new Page<>(now,size);
        page = orderMapper.selectOrderByPage(page,orderNum);
        return page;
    }
}
